<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>

<body>
    <div id="app">
        <div :num="num |add|multiply|divide">
            {{num | add}}
            {{num | multiply}}
            {{num | divide}}
        </div>
    </div>
    <script src="https://cdn.bootcdn.net/ajax/libs/vue/2.6.0/vue.js"></script>
    <script>
        const app = new Vue({
            el: '#app',
            data() {
                return {
                    num: 10
                }
            },
            filters: {
                add (value) {
                    return (value + 1)
                },
                multiply (value) {
                    return value * 6
                },
                divide (value) {
                    return value / 2
                }
            }

        });
    </script>
</body>

</html>